<?php
    $this->load->view('wx/public/header.html', [
        'time' => time(),
        'css' => [
            'assets/wx/css/detail.css',
        ]
    ]);
?>

<body ng-controller="wx-goods-comments-detail-controller">

<div class="aui-content aui-margin-b-10 gu-goods-comment">
    <ul class="aui-list aui-media-list aui-margin-b-10">
        <li class="aui-list-header aui-border-b">评论列表</li>
        <li class="aui-list-item aui-list-item-middle" ng-repeat="c in detail">
            <div class="aui-media-list-item-inner">
                <div class="aui-list-item-media" style="width: 3rem;">
                    <img ng-src="{{ c.user.avatar }}" onerror="this.src='/assets/wx/img/head.png'" class="aui-img-round aui-list-img-sm">
                </div>
                <div class="aui-list-item-inner">
                    <div class="aui-list-item-text">
                        <div class="aui-list-item-title aui-font-size-14" ng-bind="c.user.nickName"></div>
                        <div class="aui-list-item-right" ng-bind="c.created"></div>
                    </div>
                    <div class="aui-list-item-text" ng-bind="c.content"></div>
                </div>
            </div>
        </li>
    </ul>

    <a ng-hide="!nextPage" href="javascript:void(0);" ng-click="loadMore()" class="comments-footer">加载更多</a>
    <span ng-hide="nextPage" class="comments-footer-nomore">~没有更多评论了~</span>
</div>

<?php
    $this->load->view('wx/public/footer.html', [
        'time' => time(),
        'js' => [
            'assets/wx/js/goods/comments.js',
        ]
    ]);
?>

